package com.mallcloud.mall.product.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mallcloud.mall.common.core.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@ApiModel(value = "SpuModel", description = "spu信息")
@Data
@TableName(value = "P_SPU", autoResultMap = true)
public class SpuModel extends BaseModel {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "spuID")
    private Long spuId;

    @ApiModelProperty(value = "品牌ID")
    private Long brandId;

    @ApiModelProperty(value = "分类ID")
    private Long categoryId;

    @ApiModelProperty(value = "店铺分类ID")
    private Long shopCategoryId;

    @ApiModelProperty(value = "店铺id")
    private Long shopId;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "卖点")
    private String sellingPoint;

    @ApiModelProperty(value = "商品介绍主图")
    private String mainImgUrl;

    @ApiModelProperty(value = "商品图片 多个图片逗号分隔")
    private String imgUrls;

    @ApiModelProperty(value = "商品视频")
    private String video;

    @ApiModelProperty(value = "售价(分)")
    private BigDecimal priceFee;

    @ApiModelProperty(value = "市场价，整数方式保存")
    private BigDecimal marketPriceFee;

    @ApiModelProperty(value = "状态 0:下架, 1:上架")
    private Boolean status;

    @ApiModelProperty(value = "sku是否含有图片 0无 1有")
    private Boolean hasSkuImg;

    @ApiModelProperty(value = "排序")
    private Integer sortOrder;

}
